stubdom: fix a race that affects live migration with stubdoms
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 8 Jul 2009 09:51:00 +0000 (10:51 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 8 Jul 2009 09:51:00 +0000 (10:51 +0100)
commitf96f790bc4438a9b174f31972fa16fbc78b5e03c
tree5c00962cdb3acee7ae0b3f9157dbf4183baf172e
parentc6b8bdfe3b47fe94999f5f85b518da09dd5aed9a
stubdom: fix a race that affects live migration with stubdoms

This patch fixes a race during live migration with stubdoms: right
after the stubdom dies the configuration file of the VM is removed by
stubdom-dm but, in case of a live migration, the configuration file
could be the one of the new VM in the process of being created.
Removing the config file before destroying the stubdom is enough to
solve the race.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
stubdom/stubdom-dm